{extend name="shop/default/base" /} {block name="resources"}
<link href="__TEMP__/{$style}/public/css/apply/style.css"
	rel="stylesheet" type="text/css">
<link rel="stylesheet" type="text/css"
	href="__TEMP__/{$style}/public/css/ns_shop_common.css">
<link rel="stylesheet" type="text/css"
	href="__TEMP__/{$style}/public/css/store_joinin.css">
{/block} {block name="head"}{/block} {block name="headGoodType"}{/block}

{block name="main"}
<div class="headerLayout">
	<div class="headerCon ">
		<h1 id="mallLogo">
			<a href="" class="header-logo"><img
				src=""></a>
		</h1>
		<div class="header-extra">
			<div class="panel-heading">
				<div class="more">
					<div class="progress">
						<div class="progress-wrap">
							<div class="progress-item passed">
								<div class="number">1</div>
								<div class="progress-desc">入驻须知</div>
							</div>
						</div>
						<div class="progress-wrap">
							<div class="progress-item passed">
								<div class="number">2</div>
								<div class="progress-desc">公司信息认证</div>
							</div>
						</div>
						<div class="progress-wrap">
							<div class="progress-item ongoing">
								<div class="number">3</div>
								<div class="progress-desc">店铺信息认证</div>
							</div>
						</div>
						<div class="progress-wrap">
							<div class="progress-item tobe">
								<div class="number">
									<i class="tick"></i>
								</div>
								<div class="progress-desc">等待审核</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>
<div class="store-joinin-apply">
	<div class="main">
		<div id="apply_company_info" class="apply-company-info">
			<form id="form_store_info" name="form_company_info"
				action="" method="post"
				enctype="multipart/form-data" onsubmit="return supplier_Reg()">
				<table border="0" cellpadding="0" cellspacing="0" class="all">
					<thead>
						<tr>
							<th colspan="20" align="left">店铺经营信息</th>
						</tr>
					</thead>
					<tbody>
						<tr>
							<th class="w150"><i>*</i>店铺名称：</th>
							<td><input name="supplier_name" type="text" class="w200"
								value=""> <span></span>
								<p class="emphasis">店铺名称注册后不可修改，请认真填写。</p></td>
						</tr>
						<tr>
							<th><i>*</i>店铺等级：</th>
							<td><select name="rank_id" size="1">
									<option value="0">请选择</option>
									<option value="3">高级店铺</option>
									<option value="2">中级店铺</option>
									<option value="1">初级店铺</option>
							</select> <span></span>
								<div id="grade_explain" class="grade_explain"></div></td>
						</tr>
						<tr>
							<th><i>*</i>店铺分类：</th>
							<td><select name="type_id" size="1">
									<option value="0">请选择</option>
									<option value="1">精选</option>
									<option value="2">女人</option>
									<option value="3">男人</option>
									<option value="4">家装</option>
									<option value="5">母婴</option>
									<option value="6">美妆</option>
									<option value="7">美食</option>
									<option value="8">数码</option>
							</select> <span></span>
								<p class="emphasis">请根据您所经营的内容认真选择店铺分类，注册后商家不可自行修改。</p></td>
						</tr>
					</tbody>
					<tfoot>
						<tr>
							<td colspan="20">&nbsp;</td>
						</tr>
					</tfoot>
				</table>
				<input type="hidden" name="shownum" value="3"> <input
					type="hidden" name="do" value="1">
				<div class="bottom">
					<input type="button" value="上一步" class="btn"
						onclick="top.location.href=&#39;apply.php?shownum=1&#39;"><input
						type="button" value="下一步" class="btn"  onclick="location.href='{:__URL('SHOP_MAIN/Shop/applyFinish')}'">
				</div>
			</form>
		</div>
	</div>
</div>
<script>
				function supplier_Reg() {
					var frm = document.forms['form_company_info'];
					var rank_id = frm.elements['rank_id'].value;
					var supplier_name = frm.elements['supplier_name'] ? Utils.trim(frm.elements['supplier_name'].value) : '';

					if(supplier_name.length == 0) {
						msg += "店铺名称不能为空！" + '\n';
					}
					if(rank_id.length == 0 || rank_id == '0') {
						msg += "店铺等级不能为空！" + '\n';
					}
					if(type_id.length == 0 || type_id == '0') {
						msg += "店铺分类不能为空！" + '\n';
					}
					if(msg.length > 0) {
						$.msg(msg);
						return false;
					} else {
						return true;
					}
				}
			</script>

<script type="text/javascript">
			function setImagePreview(docObj, localImagId, imgObjPreview) {
				if(docObj.files && docObj.files[0]) {
					//火狐下，直接设img属性
					imgObjPreview.style.display = 'block';
					imgObjPreview.style.width = '300px';
					imgObjPreview.style.height = '200px';

					//火狐7以上版本不能用上面的getAsDataURL()方式获取，需要一下方式  
					imgObjPreview.src = window.URL.createObjectURL(docObj.files[0]);
				} else {
					//IE下，使用滤镜
					docObj.select();
					docObj.blur();
					var imgSrc = document.selection.createRange().text;

					//必须设置初始大小
					localImagId.style.width = "300px";
					localImagId.style.height = "200px";

					//图片异常的捕捉，防止用户修改后缀来伪造图片
					try {
						localImagId.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale)";
						localImagId.filters.item("DXImageTransform.Microsoft.AlphaImageLoader").src = imgSrc;
					} catch(e) {
						$.msg("您上传的图片格式不正确，请重新选择!");
						return false;
					}
					imgObjPreview.style.display = 'none';
					document.selection.empty();
				}
				return true;
			}
		</script>
{/block} {block name="RightSideBar"}{/block} {block name="bottom"}
{include file='shop/default/controlBottom'/} {/block}
